package Chapter05.Homework;

import java.util.Scanner;
//将一个正整数分解质因数
public class Test02 {
    public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        int i,sum;
        sum=input.nextInt();
        System.out.print(sum+"=");
        for (i=2;i<=sum;i++){
            while (sum!=i){
                if(sum%i==0){
                    sum=sum/i;
                    System.out.print(i+"*");
                }else {
                    break;
                }
            }
            System.out.println(sum);
        }
    }
}
